<?php
return [
    // 用户注册验证
    'register' => [
        'rules' => [
            'phone'     => 'require|mobile',
            'password'  => 'require|min:6|max:20|alphaDash',
           
        ],
        'message' => [
            'phone.require'      => '手机号必须填写',
            'phone.mobile'       => '手机号格式不正确',
            'phone.unique'       => '手机号已被注册',
            'password.require'   => '密码必须填写',
            'password.min'       => '密码长度不能少于6位',
            'password.max'       => '密码长度不能超过20位',
            'password.alphaDash' => '密码只能包含字母、数字和下划线',
        
        ]
    ],

    // 用户登录验证
    'login' => [
        'rules' => [
            'phone'    => 'require|mobile',
            'password' => 'require'
        ],
        'message' => [
            'phone.require'    => '手机号必须填写',
            'phone.mobile'     => '手机号格式不正确',
            'password.require' => '密码必须填写'
        ]
    ],

    
];
